package com.jml.每特.mybatis注解;

import com.jml.每特.mybatis注解.entity.User;
import com.jml.每特.mybatis注解.mapper.UserMapper;
import com.jml.每特.mybatis注解.sql.SqlSession;
import org.junit.Test;

public class Main {

	@Test
	public void fun1(){
		//使用动态代理技术，虚拟调用方法。这样接口就可以调用了也可以有返回值了
		UserMapper userMapper = SqlSession.getMapper(UserMapper.class);
		/*int i = userMapper.insertUser(100, "user1");
		System.out.println(i);*/
		User user = userMapper.selectUser("user1",100);
	}

}
